
import re

flag1={}
with open("sql1.txt","rb") as f:
    for i in f.readlines():
        print(i)
        # f=re.search(rb"from\(\d+\)for(1)\)\)\)when\(\d+\)then",i)
        f1 = re.search(rb"from\((\d+)\)for\(1\)\)\)\)when\((\d+)\)then",i).group(1)
        f2 = re.search(rb"from\((\d+)\)for\(1\)\)\)\)when\((\d+)\)then", i).group(2)
        flag1[f1]=int(f2)
print(flag1)
flag=""
for i in flag1:
    flag+=chr(flag1[i])
print(flag)